using System;
using System.Collections.Generic;

namespace Daniel.Core.Models
{
    public partial class Discount
    {
        public Discount()
        {
            this.DiscountRequirements = new List<DiscountRequirement>();
            this.DiscountUsageHistories = new List<DiscountUsageHistory>();
            this.Categories = new List<Category>();
            this.Products = new List<Product>();
        }

        public int Id { get; set; }
        public string Name { get; set; }
        public int DiscountTypeId { get; set; }
        public bool UsePercentage { get; set; }
        public decimal DiscountPercentage { get; set; }
        public decimal DiscountAmount { get; set; }
        public Nullable<System.DateTime> StartDateUtc { get; set; }
        public Nullable<System.DateTime> EndDateUtc { get; set; }
        public bool RequiresCouponCode { get; set; }
        public string CouponCode { get; set; }
        public int DiscountLimitationId { get; set; }
        public int LimitationTimes { get; set; }
        public virtual ICollection<DiscountRequirement> DiscountRequirements { get; set; }
        public virtual ICollection<DiscountUsageHistory> DiscountUsageHistories { get; set; }
        public virtual ICollection<Category> Categories { get; set; }
        public virtual ICollection<Product> Products { get; set; }
    }
}
